package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Entity定义
 *
 * @author MyName
 * @version 1.0
 * @date 2020-09-03
 * Copyright © MyCompany
 */
@Data
@Accessors(chain = true)
@TableName("ds_business")
public class BusinessEntity extends BaseCustomEntity {

    private static final long serialVersionUID = 1L;

    /**
     * table_id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 业务名称
     */
    @TableField()
    private String businessName;

    /**
     * 业务类型
     */
    @TableField()
    private String businessType;

    @TableField(exist = false)
    private List<AttributeEntity> attributeList;
}
